package cn.li.org.servcie.impl;

import cn.li.basic.service.impl.BaseServiceImpl;
import cn.li.basic.util.PageList;
import cn.li.org.domain.Employee;
import cn.li.org.mapper.EmployeeMapper;
import cn.li.org.query.EmployeeQuery;
import cn.li.org.servcie.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper mapper;
   /* @Override
    @Transactional
    public void add(Employee employee) {
        mapper.save(employee);
    }

    @Override
    @Transactional
    public void update(Employee employee) {
        mapper.update(employee);
    }

    @Override
    @Transactional
    public void remove(Long id) {
        mapper.delete(id);
    }

    @Override
    public Employee queryById(Long id) {
        return mapper.loadById(id);
    }

    @Override
    public List<Employee> queryAll() {
        return mapper.loadAll();
    }

    @Override
    public void batch(List<Long> ids) {
        mapper.batch(ids);
    }*/
}
